<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Services\Mqtt\Subscribes;
use Illuminate\Database\Eloquent\SoftDeletes;

class MachineAbImages extends Model
{
    

    protected $table = 'machine_ab_images';

    protected $appends = ['image_path'];
    
    
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'path', 'machine_id','host','order','available_time','out_url'
    ];   

    public function getImagePathAttribute()
    {
        return $this->host.$this->path;
    }



    
}
